#include "chat_server.h"
#include <iostream>

int main() {
    // 初始化数据库连接池
    MySQLConnectionPool& pool = MySQLConnectionPool::getInstance();
    pool.init(
        "localhost", "root", "p", "d", 3306, 10,30,1000
    );
    
    // 创建并启动聊天服务器
    ChatServer server("0.0.0.0", 8888, 10, pool);
    server.start();
    
    return 0;
}
